package com.whfc.emp.service;

import com.whfc.emp.entity.ReportReceiver;
import java.util.List;

/**
 * 日报接收记录Service，封装业务逻辑
 */
public interface ReportReceiverService {
    // 新增接收记录（全量）
    int addReceiver(ReportReceiver receiver);
    // 新增接收记录（选择性）
    int addReceiverSelective(ReportReceiver receiver);
    // 根据ID查询接收记录
    ReportReceiver getById(Long id);
    // 按日报ID查询接收记录列表
    List<ReportReceiver> getByReportId(Long reportId);
    // 按接收人ID和阅读状态查询
    List<ReportReceiver> getByReceiver(Long receiverId, Integer readStatus);
    // 更新阅读状态
    int updateReadStatus(Long reportId, Long receiverId, Integer readStatus);
    // 更新接收记录（全量）
    int updateReceiver(ReportReceiver receiver);
    // 更新接收记录（选择性）
    int updateReceiverSelective(ReportReceiver receiver);
    // 根据ID删除接收记录
    int deleteById(Long id);
}